// --------------------------------------------------------------------------------------------------------------------
// <copyright file="DataCenterCollection.cs" company="">
//   
// </copyright>
// --------------------------------------------------------------------------------------------------------------------
namespace ExecutionTool.ImportExport
{
    using System.Configuration;

    [ConfigurationCollection(typeof(DataCenter))]
    public class DataCenterCollection : ConfigurationElementCollection
    {
        #region Public Indexers

        public DataCenter this[int idx]
        {
            get
            {
                return (DataCenter)this.BaseGet(idx);
            }
        }

        #endregion

        #region Methods

        protected override ConfigurationElement CreateNewElement()
        {
            return new DataCenter();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((DataCenter)element).DnsPrefix;
        }

        #endregion
    }
}
